/*
 * UploadHubList.java
 *
 * Created on 16 de Dezembro de 2004, 20:01
 */

package ceirinhashls;

import org.apache.commons.net.ftp.*;
import java.io.FileInputStream;
import java.io.IOException;
import java.net.SocketException;
/**
 *
 * @author  botelhodaniel
 */
public class UploadHubList {
    /** Creates a new instance of UploadHubList */
    public UploadHubList(String server,String username, String password,String remoteFile ,String filePath) throws SocketException, IOException{
        FTPClient ftp= new FTPClient();
        System.out.println("\t.");
    	ftp.connect(server);
        System.out.println("\t..");
    	ftp.login(username, password);
    	System.out.print(ftp.getReplyString());
        System.out.println("\t...");
    	ftp.storeFile(remoteFile,new FileInputStream(filePath));
    	System.out.print(ftp.getReplyString());
    }
    
}
